package tech.xs.common.sys.domain.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import tech.xs.common.framework.domain.constant.DatePattern;
import tech.xs.common.sys.domain.enums.SysAccountStatusEnum;
import tech.xs.common.domain.enums.SexEnum;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * 系统用户详情
 *
 * @author 沈家文
 * @since 2023/6/21 15:49
 */
@Getter
@Setter
@ToString
public class UserDetailsBo implements Serializable {

    private Long userId;

    private String userName;

    private String nickName;

    private String phone;

    private String email;

    private String realName;

    private String idNumber;

    private SexEnum sex;

    private SysAccountStatusEnum accountStatus;

    @JsonFormat(pattern = DatePattern.NORM_DATE_PATTERN)
    private LocalDate birthDate;

    private String avatarUrl;

    private Long companyId;

}
